package com.cloud.pole.common.exception;

import com.cloud.pole.common.constant.CommonConstants;
import com.cloud.pole.common.exception.BaseException;

/**
 * 参数校验
 *
 * @Auther: Tom
 * @Date: 2018/5/25 15:55
 * @Description:
 */
public class ParamException extends BaseException {

    public static void err(boolean condition, String message) {
        if (condition) {
            throw new BaseException(CommonConstants.STATUS_ERROR_CODE, message);
        }
    }
}
